
function messageRemind(){
    let user = JSON.parse(sessionStorage.getItem("User"));
    $.ajax({
        xhrFields:{
            withCredentials:true
        },
        type: "POST",
        url: baseUrl+"education_api/systemAdvice/getReadState",
        data:{
            userId:user.id
        },
        success: function (resp) {
            if (resp.message == "false") {
                console.log("无未读消息")
            }else {
                console.log("有未读消息")
                let html='<span style="position: absolute;top: 0px;left: 62px;width: 6px;height: 6px;background: red;border-radius: 50%;"></span>';
                $("#remind").append(html);
            }
        }
    })
    
}